Optimal. Leaf size=23 \[ -\frac{\log \left (a \cos ^3(e+f x)+b\right )}{3 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0307096, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {4138, 260} \[ -\frac{\log \left (a \cos ^3(e+f x)+b\right )}{3 a f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4138
Rule 260
Rubi steps
\begin{align*} \int \frac{\tan (e+f x)}{a+b \sec ^3(e+f x)} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{x^2}{b+a x^3} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{\log \left (b+a \cos ^3(e+f x)\right )}{3 a f}\\ \end{align*}
Mathematica [A] time = 0.0186448, size = 23, normalized size = 1. \[ -\frac{\log \left (a \cos ^3(e+f x)+b\right )}{3 a f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 37, normalized size = 1.6 \begin{align*} -{\frac{\ln \left ( a+b \left ( \sec \left ( fx+e \right ) \right ) ^{3} \right ) }{3\,fa}}+{\frac{\ln \left ( \sec \left ( fx+e \right ) \right ) }{fa}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.998469, size = 28, normalized size = 1.22 \begin{align*} -\frac{\log \left (a \cos \left (f x + e\right )^{3} + b\right )}{3 \, a f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.552398, size = 51, normalized size = 2.22 \begin{align*} -\frac{\log \left (a \cos \left (f x + e\right )^{3} + b\right )}{3 \, a f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 82.6005, size = 170, normalized size = 7.39 \begin{align*} \begin{cases} \frac{\tilde{\infty } x \tan{\left (e \right )}}{\sec ^{3}{\left (e \right )}} & \text{for}\: a = 0 \wedge b = 0 \wedge f = 0 \\\frac{\log{\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 a f} & \text{for}\: b = 0 \\\frac{x \tan{\left (e \right )}}{a + b \sec ^{3}{\left (e \right )}} & \text{for}\: f = 0 \\- \frac{1}{3 b f \sec ^{3}{\left (e + f x \right )}} & \text{for}\: a = 0 \\- \frac{\log{\left (- \sqrt [3]{-1} \sqrt [3]{a} \sqrt [3]{\frac{1}{b}} + \sec{\left (e + f x \right )} \right )}}{3 a f} + \frac{\log{\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 a f} - \frac{\log{\left (4 \left (-1\right )^{\frac{2}{3}} a^{\frac{2}{3}} \left (\frac{1}{b}\right )^{\frac{2}{3}} + 4 \sqrt [3]{-1} \sqrt [3]{a} \sqrt [3]{\frac{1}{b}} \sec{\left (e + f x \right )} + 4 \sec ^{2}{\left (e + f x \right )} \right )}}{3 a f} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.22856, size = 258, normalized size = 11.22 \begin{align*} \frac{\frac{3 \, \log \left (-\frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 1\right )}{a} - \frac{\log \left ({\left | a + b + \frac{3 \, a{\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} - \frac{3 \, b{\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac{3 \, a{\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{3 \, b{\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{a{\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} - \frac{b{\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} \right |}\right )}{a}}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]